Skip to content

CASSANALYTICS-185: Support custom authentication mechanisms in Sidecar - #235

Open
lukasz-antoniak wants to merge 1 commit into
apache:trunkfrom
lukasz-antoniak:CASSANALYTICS-185
Open

lukasz-antoniak wants to merge 1 commit into
apache:trunkfrom
lukasz-antoniak:CASSANALYTICS-185

Conversation

@lukasz-antoniak

Copy link
Copy Markdown
Member

@yifan-c yifan-c left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch!

I think the change in the client can be simplified. The client subprojects are copied from Sidecar, and we want to minimize code divergence until CEP-63 lands.

The alternative I'm thinking of is to inject credentials via SidecarClient.requestBuilder() instead of wiring it through RequestExecutor. Something like the following:

public RequestContext.Builder requestBuilder()
{
    RequestContext.Builder builder = baseBuilder.copy();
    identityProvider.injectCredentials(builder);
    return builder;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants